<?php include COMMON_PATH.'/index/header.html' ?>
<!--报名记录-->
<div class="pt-wrap main-content pu-wrap clearfix">
    <!--引入左侧导航-->
    <?php include COMMON_PATH.'/index/left.html' ?>
    <div class="fl right-box">
        <div class="title">
            <b>报名记录</b>
        </div>
        <div class="home-bot-wrap clearfix" style="width: 850px; padding:0 32px 0;">

            <div class="layui-tab layui-tab-brief" id="booked-tab-content">
                <ul class="layui-tab-title">
                    <li class="layui-this"><a href="/Prior/wait">待培训</a></li>
                    <li><a href="/Prior/end">已培训</a></li>
                </ul>
                <div class="layui-tab-content" style="padding: 10px 0;">
                    <div class="layui-tab-item layui-show">
                        <ul class="live-list-wrap advance-list-wrap clearfix">
                            <?php foreach($wait['lists'] as $v):?>
                            <li class="fl">
                                <div class="pic-wrap">
                                    <img src="<?=$v['avatar']?>" onerror = "iService.imgNoFind(this)">
                                    <p class="bot-description">
                                        <span class="fl"><?=$v['date']?></span>
                                        <span class="fr"><?=$v['start_time']?>-<?=$v['end_time']?></span>
                                    </p>
                                    <?php if($v['booked'] == 1):?>
                                    <span class="btn-cancel" data-llid="<?=$v['llid']?>" data-status="<?=$v['booked']?>"></span>
                                    <?php else:?>
                                    <span class="btn-sure" data-llid="<?=$v['llid']?>" data-status="<?=$v['booked']?>"></span>
                                    <?php endif;?>
                                </div>
                                <div class="font-wrap">
                                    <p><?=$v['name']?></p>
                                    <p>
                                        讲师：<?=$v['nickname']?>
                                        <a href="javascript:void(0);" class="fr user-num"><i class="am-icon-user"></i>&nbsp;<b class="focus-num"><?=$v['enrol']?></b></a>
                                        <!--<span class="fr user-num"><i class="am-icon-user"></i>&nbsp;<?=$v['enrol']?></span>-->
                                    </p>
                                </div>
                            </li>
                            <?php endforeach;?>
                        </ul>
                    </div>
                </div>
                <div data-page-total="<?=$wait['count']?>" data-page-per="<?=PAGE_NUMBER?>"  id="live-page-wrap"></div>
            </div>
        </div>
    </div>
</div>
<?php include COMMON_PATH.'/index/footer.html' ?>
<script>
    navActive(6);
    portalNavActive(2);
    var url_pic = '<?=$imgPath?>';
</script>
</html>